package com.ws.gold.config;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class PageQuery<T> {

    private Integer pageNum;
    private Integer pageSize;
    private T query;

    public PageQuery() {
        this.pageNum = 1;
        this.pageSize = 10;
    }

    public PageQuery(T query) {
        this.pageNum = 1;
        this.pageSize = 10;
        this.query = query;
    }

}